<?php

namespace App\Model\Guild;

use App\Model\UserProfile;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class GuildBalance extends GuildBase
{
    //表名字
    protected $table = 'guild_balance';

    /**
     * @return BelongsTo
     */
    public function userProfile()
    {
        return $this->belongsTo(UserProfile::class, 'user_id', 'user_id');
    }

    /**
     * @return BelongsTo
     */
    public function guildProfile()
    {
        return $this->belongsTo(GuildManage::class, 'guild_manage_id', 'id');
    }
}
